package com.yao.club.reposittory;

import com.yao.club.entity.dto.PostsTipOff;
import com.yao.club.entity.dto.SysImg;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SysImageRepository extends JpaRepository<SysImg, String> {

    @Query(nativeQuery=true,value="select * from sys_img where img_id= :img_id")
    SysImg selectById(@Param("img_id") String img_id);

}
